domain of a rational function by factoring